package com.ctshk.rpc.booking.req.outside.air.save;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

/**
 * <p>
 * 站外机票出行信息旅客类型价格
 * </p>
 *
 * @author 谢诗宏
 * @since 2021-03-09
 */
@Data
@ApiModel(value = "SupplierOutsideOrderAirTouristTypeReq对象", description = "站外机票出行信息旅客类型价格")
public class SupplierOutsideOrderAirTouristTypeReq implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "ID")
    private Long id;

    @ApiModelProperty(value = "所属出行信息ID")
    private Long airId;

    @ApiModelProperty(value = "所属订单ID")
    private Long orderId;

    @NotNull(message = "旅客类型ID不能为空")
    @ApiModelProperty(value = "旅客类型ID")
    private Long touristTypeId;

    @NotNull(message = "旅客类型不能为空")
    @ApiModelProperty(value = "旅客类型")
    private String touristType;

    @NotNull(message = "票数不能为空")
    @ApiModelProperty(value = "票数")
    private Integer ticketNum;

    @NotNull(message = "每张票价不能为空")
    @ApiModelProperty(value = "每张票价")
    private BigDecimal singlePrice;

    @NotNull(message = "每张税额不能为空")
    @ApiModelProperty(value = "每张税额")
    private BigDecimal taxAmount;

    @ApiModelProperty(value = "其他")
    private String otherRemark;

    @Valid
    @ApiModelProperty(value = "航班旅客类型列表")
    private List<SupplierOutsideOrderAirTouristReq> supplierOutsideOrderAirTouristList;
}
